<!DOCTYPE html>
<html class="pixel-ratio-1" style="background-color: #f1f1f1;">

<head>
    <meta charset="utf-8" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
    <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <script src="../../../../public/vendor/flexible/flexible.js"></script>
    <title>销售出库单-详情</title>
    <link rel="stylesheet" type="text/css" href="../../../../public/vendor/weui/weui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../../public/css/common.css" />
    <link rel="stylesheet" type="text/css" href="../../../../public/css/iconfont/iconfont.css" />
    <link rel="stylesheet" href="../../../../public/vendor/weui/jquery-weui.css">
    <link rel="stylesheet" href="../../../../public/vendor/select2/select2.css">
    <link rel="stylesheet" href="../../../../public/css/features/breedsales/saleorders/detailssaleorders.css">
    <script id="looksalesplanmain-template" type="text/x-template">
        <div class='entrycon'>
            <h4 class="plantails-head" style="padding-top: 10px;font-size: 17px;">单据信息</h4>
        </div>
        <div class="report-contents-item-box">
            <div class="weui-cell materialinfo">
                <div class="weui-cell__hd"><label class="weui-label">单据编号</label></div>
                <div class="weui-cell__bd">
                    {{=it.billNo}}
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">业务日期</label></div>
                <div class="weui-cell__bd">
                    {{=moment(it.bizDate).format('YYYY-MM-DD')}}
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">销售组织</label></div>
                <div class="weui-cell__bd">
                    {{=it.saleOrgName}}
                </div>
            </div>
            <!-- {{? Utils.IsNotNull(it.attaches)}}
            <div class="weui-cell">
                <div style="padding: 10px 10px;">
                    <div class="weui-cell__hd"><label class="weui-label">附件</label></div>
                    <div class="weui-cells-border weui-cells_form" id="uploader" style="margin-top: -10px;">
                        <div class="weui-cell" style='padding: 16px 15px;'>
                            <div class="weui-cell__bd">
                                <div class="weui-uploader">
                                    <div class="weui-uploader__bd">
                                        <ul class="weui-uploader__files" id="uploaderFiles"></ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            {{?}} -->
            <div class="weui-cell">
                <div>
                    <div class="weui-uploader__hd">
                        <p class="weui-uploader__title">备注</p>
                    </div>
                    <textarea class="weui-textarea remark" rows="1" name="tags" data-plugin="maxlength"
                              data-placement="bottom-right-inside" readonly="readonly">{{=it.remark}}</textarea>
                </div>
            </div>
        </div>
    </script>

    <script id="looksalesplan-template" type="text/x-template">
        <div class='entrycon'>
            <h4 class="plantails-head" style="padding-top: 10px;font-size: 17px;">单据明细</h4>
        </div>
        {{~ it.entreis :value:index}}
        <div class="report-contents-item-box">
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">农场</label></div>
                <div class="weui-cell__bd">
                    {{=value.farmOrgName}}
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">养殖批次</label></div>
                <div class="weui-cell__bd">
                    {{=value.breedBatchName}}
                </div>
            </div>
            <div class="weui-cell materialinfo">
                <div class="weui-cell__hd"><label class="weui-label">销售品类</label></div>
                <div class="weui-cell__bd">
                    {{=value.specLevel}}
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">出库数量(头)</label></div>
                <div class="weui-cell__bd">
                    {{=Utils.toThousands(value.count,0)}}
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">重量(kg)</label></div>
                <div class="weui-cell__bd">
                    {{=Utils.toThousands(value.weight)}}
                </div>
            </div>
            <div class="weui-cell materialinfo">
                <div class="weui-cell__hd"><label class="weui-label">物料</label></div>
                <div class="weui-cell__bd">
                    {{=value.materialName}}({{=value.materialNumCode}})
                </div>
            </div>
            <div class="weui-cell materialinfo">
                <div class="weui-cell__hd"><label class="weui-label">基本计量单位</label></div>
                <div class="weui-cell__bd">
                    {{=value.baseMeasureUnit}}
                </div>
            </div>
            <div class="weui-cell materialinfo">
                <div class="weui-cell__hd"><label class="weui-label">辅助计量单位</label></div>
                <div class="weui-cell__bd">
                    {{=value.subMeasureUnit}}
                </div>
            </div>
            <div class="weui-cell materialinfo">
                <div class="weui-cell__hd"><label class="weui-label">辅助计量数量</label></div>
                <div class="weui-cell__bd">
                    {{=value.subMeasuerCount}}
                </div>
            </div>

            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">运输车牌</label></div>
                <div class="weui-cell__bd">
                    {{=value.carNo}}
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">中转车牌</label></div>
                <div class="weui-cell__bd">
                    {{=value.transferCarNo}}
                </div>
            </div>
            <div class="weui-cell">
                <div>
                    <div class="weui-uploader__hd">
                        <p class="weui-uploader__title">备注</p>
                    </div>
                    <textarea class="weui-textarea remark" rows="1" name="tags" data-plugin="maxlength"
                              data-placement="bottom-right-inside" readonly="readonly">{{=value.remark}}</textarea>
                </div>
            </div>
            {{? Utils.IsNotNull(value.attaches)}}
            <div class="weui-cell">
                <div style="padding: 10px 10px;">
                    <div class="weui-cell__hd"><label class="weui-label">附件</label></div>
                    <div class="weui-cells-border weui-cells_form" id="uploader" style="margin-top: -10px;">
                        <div class="weui-cell" style='padding: 16px 15px;'>
                            <div class="weui-cell__bd">
                                <div class="weui-uploader">
                                    <div class="weui-uploader__bd">
                                        <ul class="weui-uploader__files" id="uploaderFiles{{=index}}"></ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            {{?}}
        </div>
        {{~}}
        <div class="report-contents-item-box operation ">
            <div class="weui-cell operation-child">
                <a href="javascript:;" class="weui-btn weui-btn_primary"
                   style="width: 100%;border-radius:8px;margin-top: 0px;margin-right: 0px;" id="returnlist"
                   v-on:click="returnlist">返回列表</a>
            </div>
        </div>
    </script>

    <script id="saleMain-template" type="text/x-template">
        <div class='entrycon'>
            <h4 class="plantails-head" style="padding-top: 10px;font-size: 17px;">单据信息</h4>
        </div>
        <div class="report-contents-item-box">
            <div class="weui-cell materialinfo">
                <div class="weui-cell__hd"><label class="weui-label">单据编号</label></div>
                <div class="weui-cell__bd">
                    {{=it.billNo}}
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">业务日期</label></div>
                <div class="weui-cell__bd">
                    {{=moment(it.bizDate).format('YYYY-MM-DD')}}
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">销售组织</label></div>
                <div class="weui-cell__bd">
                    {{=it.saleOrgName}}
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">销售员</label></div>
                <div class="weui-cell__bd">
                    {{=it.salePerName}}
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">客户信息</label></div>
                <div class="weui-cell__bd">
                    {{=it.cstmName}}( {{=it.cstmNumCode}})
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">总头数(头)</label></div>
                <div class="weui-cell__bd">
                    {{=Utils.toThousands(it.totalCount,0)}}
                </div>
            </div>
            {{? Utils.IsNotNull(it.totalPrice)}}
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">总价(元)</label></div>
                <div class="weui-cell__bd">
                    {{=Utils.toThousands(it.totalPrice)}}
                </div>
            </div>
            {{??}}
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">预收款(元)</label></div>
                <div class="weui-cell__bd">
                    {{=Utils.toThousands(it.preSaleAmount)}}
                </div>
            </div>
            {{?}}
            {{? Utils.IsNotNull(it.attaches)}}
            <div class="weui-cell">
                <div style="padding: 10px 10px;">
                    <div class="weui-cell__hd"><label class="weui-label">附件</label></div>
                    <div class="weui-cells-border weui-cells_form" id="uploader" style="margin-top: -10px;">
                        <div class="weui-cell" style='padding: 16px 15px;'>
                            <div class="weui-cell__bd">
                                <div class="weui-uploader">
                                    <div class="weui-uploader__bd">
                                        <ul class="weui-uploader__files" id="uploaderFiles"></ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            {{?}}
            <div class="weui-cell">
                <div>
                    <div class="weui-uploader__hd">
                        <p class="weui-uploader__title">备注</p>
                    </div>
                    <textarea class="weui-textarea remark" rows="1" name="tags" data-plugin="maxlength"
                              data-placement="bottom-right-inside" readonly="readonly">{{=it.remark}}</textarea>
                </div>
            </div>
        </div>
    </script>

    <script id="saleEntry-template" type="text/x-template">
        <div class='entrycon'>
            <h4 class="plantails-head" style="padding-top: 10px;font-size: 17px;">销售订单明细</h4>
        </div>
        {{~ it.entreis :value:index}}
    <div class="report-contents-item-box">
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">农场</label></div>
            <div class="weui-cell__bd">
                {{=value.farmOrgName}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">养殖批次</label></div>
            <div class="weui-cell__bd">
                {{=value.breedBatchName}}
            </div>
        </div>
        <div class="weui-cell materialinfo">
            <div class="weui-cell__hd"><label class="weui-label">物料</label></div>
            <div class="weui-cell__bd">
                {{=value.materialName}}({{=value.materialNumCode}})
            </div>
        </div>
        <div class="weui-cell materialinfo">
            <div class="weui-cell__hd"><label class="weui-label">销售品类</label></div>
            <div class="weui-cell__bd">
                {{=value.specLevel}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">订单数量(头)</label></div>
            <div class="weui-cell__bd">
                {{=Utils.toThousands(value.orderCount,0)}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">出库数量(头)</label></div>
            <div class="weui-cell__bd">
                {{=Utils.toThousands(value.count,0)}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">重量(kg)</label></div>
            <div class="weui-cell__bd">
                {{=Utils.toThousands(value.weight)}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">预估均重(kg)</label></div>
            <div class="weui-cell__bd">
                {{=Utils.toThousands(value.estimatedAvgWeight)}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">出库均重(kg)</label></div>
            <div class="weui-cell__bd">
                {{=value.count==0?0:(value.weight/value.count).toFixed(2)}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">单价</label></div>
            <div class="weui-cell__bd">
                {{=Utils.toThousands(value.unitPrice)}}元/{{=value.baseMeasureUnit}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">司机姓名</label></div>
            <div class="weui-cell__bd">
                {{=value.deiverName}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">司机电话号码</label></div>
            <div class="weui-cell__bd">
                {{=value.deiverPhone}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">发货地址</label></div>
            <div class="weui-cell__bd">
                {{=value.receiveAddress}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">收货地址</label></div>
            <div class="weui-cell__bd">
                {{=value.detailDeliveryAddress}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">运输车牌</label></div>
            <div class="weui-cell__bd">
                {{=value.carNo}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">中转车牌</label></div>
            <div class="weui-cell__bd">
                {{=value.transferCarNo}}
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">是否赠送</label></div>
            <div class="weui-cell__bd">
                {{=value.isGift==true?"是":"否"}}
            </div>
        </div>
    </div>
        {{~}}
        <div class="report-contents-item-box operation ">
            <div class="weui-cell operation-child">
                <a href="javascript:;" class="weui-btn weui-btn_primary"
                   style="width: 100%;border-radius:8px;margin-top: 0px;margin-right: 0px;" id="returnlist"
                   v-on:click="returnlist">返回列表</a>
            </div>
        </div>
    </script>

</head>

<body>
    <div id="main-looksalesplan">
        <div id="looksalesplan">
            <div id="spleplan-navbar" class="weui-navbar spleplan_nav">
                <a class="weui-navbar__item weui-bar__item--on navbar-click" href="javascript:;" id="all-list">
                    销售出库单
                </a>
                <a class="weui-navbar__item  navbar-click" href="javascript:;" id="save-list">
                    销售订单
                </a>
            </div>
            <div id="looksalesMain">
            </div>
            <div id="looksalesEntry">
            </div>

        </div>
    </div>


    <script type="text/javascript" src="../../../../public/vendor/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/vue/vue.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/moment/moment.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/weui/weui.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/weui/jquery-weui.min.js"></script>
    <script type="text/javascript" src="../../../../public/js/common/iosadaptation.js"></script>
    <script type="text/javascript" src="../../../../public/js/config/utils.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/select2/select2.full.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/select2/i18n/zh-CN.js"></script>
    <script type="text/javascript" src="../../../../public/js/common/iosadaptation.js"></script>

    <script type="module" src="../../../../public/js/features/breedsales/deliverbills/deliverinfo.js"></script>
</body>

</html>